package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户登录表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("customer_login")
@ApiModel(value = "CustomerLogin对象", description = "用户登录表")
public class CustomerLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    @ApiModelProperty("用户登录名")
    private String loginName;

    @ApiModelProperty("md5加密的密码")
    private String password;

    @ApiModelProperty("用户状态")
    private Byte userStats;

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Byte getUserStats() {
        return userStats;
    }

    public void setUserStats(Byte userStats) {
        this.userStats = userStats;
    }

    @Override
    public String toString() {
        return "CustomerLogin{" +
            "customerId = " + customerId +
            ", loginName = " + loginName +
            ", password = " + password +
            ", userStats = " + userStats +
        "}";
    }
}
